import json

import requests

def get(i):
    request_body = "{}"
    # http://395db05950ae4ad6ac2977ff98c45410.apigw.sx-region-2.sgic.sgcc.com.cn/fhyc_test_a
    datas = {"app_secret": "20330eef54d9444caf9bf21cbc66276a",
             "app_key": "08658996a05f40a286836c17be8deebd",
             "api_id": "67c3d8753ea929b2e0b91fdf4f73a58a",
             "rquest_url": "http://395db05950ae4ad6ac2977ff98c45410.apigw.sx-region-2.sgic.sgcc.com.cn/fhyc_test_a",
             "request_method": "GET",
             "request_body": request_body}
    headers = {
        "Content-Type": "application/json"
    }
    r = requests.post('http://localhost:8899/dataService/post', data=json.dumps(datas), headers=headers)
    print("["+str(i)+"]"+str(r.content))
if __name__ == '__main__':
   for i in range(1000):
       get(i)